
// 自动生成模板WolfKillGame
package example
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 狼人杀对局 结构体  WolfKillGame
type WolfKillGame struct {
    global.GVA_MODEL
    GameId  *string `json:"gameId" form:"gameId" gorm:"column:game_id;comment:游戏唯一标识;" binding:"required"`  //游戏ID
    GameName  *string `json:"gameName" form:"gameName" gorm:"column:game_name;comment:游戏名称;" binding:"required"`  //游戏名称
    MaxPlayer  *int `json:"maxPlayer" form:"maxPlayer" gorm:"column:max_player;comment:最大玩家数;" binding:"required"`  //最大玩家数
    CurrentPlayer  *int `json:"currentPlayer" form:"currentPlayer" gorm:"column:current_player;comment:当前玩家数;"`  //当前玩家数
    Status  string `json:"status" form:"status" gorm:"column:status;type:enum('Waiting','Playing','Finished');comment:游戏状态;" binding:"required"`  //游戏状态
    StartAt  *time.Time `json:"startAt" form:"startAt" gorm:"column:start_at;comment:开始时间;"`  //开始时间
    EndAt  *time.Time `json:"endAt" form:"endAt" gorm:"column:end_at;comment:结束时间;"`  //结束时间
    Creator  *string `json:"creator" form:"creator" gorm:"column:creator;comment:创建者;"`  //创建者
}


// TableName 狼人杀对局 WolfKillGame自定义表名 wolf_kill_game
func (WolfKillGame) TableName() string {
    return "wolf_kill_game"
}





